package com.financing.wap.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IAccountDao;
import com.financing.wap.dao.IProductDao;
import com.financing.wap.dao.IProductSupplierDao;
import com.financing.wap.dto.AccountCorpDTO;
import com.financing.wap.dto.AccountDetailDTO;
import com.financing.wap.dto.ProductSupplierDTO;
import com.financing.wap.vo.AccountCorpVo;
import com.financing.wap.vo.AccountDetailVo;
import com.financing.wap.vo.AmountVO;



@Repository("productSupplierDao")
@SuppressWarnings(value={"unchecked", "deprecation"})
public class ProductSupplierDaoImpl extends BaseDaoImpl<ProductSupplierDTO, java.lang.Integer> implements IProductSupplierDao {

	@Override
	public Class<ProductSupplierDTO> getEntityClass() {
		return ProductSupplierDTO.class;
	}

	@Override
	public int addProductSupplier(ProductSupplierDTO productSupplierDto) {
		return (Integer) this.sqlMapClientTemplate.insert(sqlName.addProductSupplier,productSupplierDto);
	}

	@Override
	public List<ProductSupplierDTO> queryProductSupplier(
			ProductSupplierDTO productSupplierDto) {
		return this.sqlMapClientTemplate.queryForList(sqlName.queryProductSupplier,productSupplierDto);
	}

	@Override
	public int updateProductSupplier(ProductSupplierDTO productSupplierDto) {
		return this.sqlMapClientTemplate.update(sqlName.updateProductSupplier,productSupplierDto);
	}

	
}
